#ifndef SETTINGDIALOG_H
#define SETTINGDIALOG_H

#include <QDialog>
#include <QLineEdit>
#include <QPushButton>
#include <QVBoxLayout>
#include <QFormLayout>

class SettingDialog : public QDialog
{
    Q_OBJECT

public:
    explicit SettingDialog(QWidget *parent = nullptr);

private slots:
    void onSaveClicked();
    void onCancelClicked();

private:
    QLineEdit *m_apiKeyEdit;
    QLineEdit *m_timeoutEdit;

    QString getCurrentApiKey();
    int getCurrentTimeout();
};

#endif // SETTINGDIALOG_H
